package com.ciwong.epaper.widget;

import android.app.Dialog;
import android.content.Context;
import android.support.annotation.NonNull;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ImageView;

import com.ciwong.epaper.R;
import com.ciwong.epaper.util.DisplayUtils;

/**
 * Created by Administrator on 2017/9/16.
 */

public class RepeatTipsDialog extends Dialog{

    private ImageView img_repeat_tips;

    private  View parent_view;

    public RepeatTipsDialog(@NonNull Context context) {
        super(context, R.style.read_choose_dialog);
        setContentView(R.layout.dialog_repeat_tips);


        parent_view = findViewById(R.id.parent_view);

        ViewGroup.LayoutParams layoutParams = parent_view.getLayoutParams();
        layoutParams.width=  DisplayUtils.getScreenWidth(context);
        layoutParams.height = DisplayUtils.getScreenHeight(context);
        parent_view.setLayoutParams(layoutParams);

        img_repeat_tips = (ImageView) findViewById(R.id.img_repeat_tips);
        img_repeat_tips.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                dismiss();
            }
        });
    }


}
